#ifndef __ATK_MS901M_UART_H
#define __ATK_MS901M_UART_H

#include "../basic.h"
#include "stdio.h"

/* UART接收FIFO缓冲大小 */
#define ATK_MS901M_UART_RX_FIFO_BUF_SIZE        512

/* 操作函数 */
uint8_t atk_ms901m_uart_rx_fifo_write(uint8_t *dat, uint16_t len);  /* ATK-MS901M UART接收FIFO写入数据 */
uint16_t atk_ms901m_uart_rx_fifo_read(uint8_t *dat, uint16_t len);  /* ATK-MS901M UART接收FIFO读取数据 */
void atk_ms901m_rx_fifo_flush(void);                                /* ATK-MS901M UART接收FIFO清空 */
void atk_ms901m_uart_send(uint8_t *dat, uint8_t len);               /* ATK-MS901M UART发送数据 */
void atk_ms901m_uart_init();                       /* ATK-MS901M UART初始化 */
void UART_3_INST_IRQHandler(void);

#endif
